<{assign var=page_title value='授与权限' }>
<{ include file="FASHION/page_header.phtml" }>

Name: <{$user.name}> <br/>
Account: <{$user.account}> <br/>
Roles:

<form method="post" id="form1">
<ul>
<{if $roles}><{foreach item=r key=rid from=$roles}>
	<li>
		<input type="checkbox" value="<{$rid}>" name="role[]" id="role_<{ $rid }>" <{if $user.roles[$rid]}> checked<{/if}> />
		<label for="role_<{$rid}>"><{$r}></label>
	</li>
<{/foreach}><{/if}>
</ul>
<div class="center">
<input type="button" value="返回" onclick="location.href='<{ url a=user-role }>';" />
<input type="submit" value="授与用户权限" />
</div>
</form>

<script>
ajax_form({id:'form1'});
</script>

<{ include file="FASHION/page_footer.phtml" }>
